package com.xy.biz.fd.boot;

import com.xy.lang.domain.OrderConstant;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = {
        "com.xy.tool",
        "com.xy.biz.base",
        "com.xy.biz.uc",
        "com.xy.biz.auth",
        "com.xy.biz.fd"
})
@MapperScan(basePackages = {
        "com.xy.tool.concurrent.locks.rdb.dao",
        "com.xy.tool.gid.dao",
        "com.xy.biz.base.dao",
        "com.xy.biz.uc.dao",
        "com.xy.biz.auth.dao"
})
@EnableTransactionManagement(order = OrderConstant.TRANSACTION)
@EnableSwagger2
public class FdApplication {

    public static void main(String[] args) {
        SpringApplication.run(FdApplication.class, args);
    }

}
